package com.zt.teacher.dao;

import com.zt.common.pojo.exam.ExamAnswer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * description:
 * author:zt
 * date:2022-01-18
 */
@Mapper
public interface ExamAnswerDao {

    void insert(ExamAnswer examAnswer);

    List<ExamAnswer> getAnswerByQuestionIdsAndStuId(@Param("studentId") String studentId, @Param("questionIds") List<Integer> questionIds, int examId);

    List<ExamAnswer> getAnswerByQuestionIds(@Param("questionIds") List<Integer> questionIds, int examId);

    List<ExamAnswer> getByQuestionId(int questionId);
}
